// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
// See the LICENCE file in the repository root for full licence text.

.beatmapset-header {
  display: grid;
  gap: 20px;
  padding: 10px @gutter-beatmapset 0;
  min-height: 350px;
  position: relative;

  @media @desktop {
    padding: 20px @gutter-beatmapset-desktop 0;
    grid-template-columns: 1fr @beatmapset-float-box-width;
  }

  &__box {
    display: flex;
    flex-direction: column;

    position: relative;

    &--main {
      @media @desktop {
        padding-bottom: 25px;
      }
    }

    &--stats {
      justify-content: space-between;
    }
  }

  &__beatmap-picker-box {
    flex: 1 0 auto;
  }

  &__buttons {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
  }

  &__availability-info {
    font-size: @font-size--title-small;
    padding: 10px;
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: @yellow-dark;
  }

  &__availability-link {
    padding-top: 10px;
    font-size: @font-size--small;
  }

  &__cover {
    --border-radius: 0;
    .light-header-overlay();
    display: contents;
  }

  &__details-text {
    max-width: 100%;
    word-break: break-word;

    &--artist {
      font-size: 20px;
      font-weight: 500;
      padding-bottom: 20px;
    }

    &--title {
      font-size: 30px;
      font-weight: 600;
      line-height: 1;
      margin-bottom: 5px;
      margin-top: 10px;
    }
  }

  &__details-text-link {
    .default-text-shadow();
    .link-white();
    .link-plain();
  }

  &__diff-extra {
    margin-left: 5px;
    font-size: @font-size--small-2;
    font-weight: 600;

    &--star-difficulty {
      color: @yellow;
    }
  }

  &__diff-name {
    font-size: 17px;
    font-weight: 600;
    overflow-wrap: anywhere;

    color: hsl(var(--hsl-c1));

    .default-text-shadow();
  }

  &__more {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 45px;
    height: 45px;
  }

  &__status {
    height: @beatmap-picker-size;
    font-size: @font-size--title-small;
    margin: -5px -5px 5px;
    display: flex;
    margin-left: auto;
  }

  &__value {
    font-size: 12px;
    font-weight: 500;
    margin-right: 10px;

    color: #ffffff;

    .default-text-shadow();

    &--has-favourites {
      background: hsla(var(--hsl-b6), 0.25);
      padding: 2px 5px;
      .default-border-radius();

      &:hover {
        background: hsla(var(--hsl-b6), 0.5);
      }
    }
  }

  &__value-icon {
    padding-right: 2px;
    color: #fff;

    &--favourites {
      &:hover,
      &:visited,
      &:link,
      &:active {
        text-decoration: none;
        color: #fff;
      }

      &:hover {
        color: @pink-dark;
      }
    }

    &--favourited {
      &:hover,
      &:link {
        color: @pink-darker;
      }
    }
  }
}
